
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGSimpleMaterial.h>
#include <OpenSG/OSGSimpleMaterialBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_SimpleMaterial_dump_overloads_0_2, dump, 0, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_SimpleMaterial()
{
    scope* osg_SimpleMaterialBase_scope = new scope(
    class_< osg::SimpleMaterialBase, bases< osg::ChunkMaterial > , boost::noncopyable >("SimpleMaterialBase", no_init)
//        .def_readonly("AmbientFieldMask", &osg::SimpleMaterialBase::AmbientFieldMask)
//        .def_readonly("DiffuseFieldMask", &osg::SimpleMaterialBase::DiffuseFieldMask)
//        .def_readonly("SpecularFieldMask", &osg::SimpleMaterialBase::SpecularFieldMask)
//        .def_readonly("ShininessFieldMask", &osg::SimpleMaterialBase::ShininessFieldMask)
//        .def_readonly("EmissionFieldMask", &osg::SimpleMaterialBase::EmissionFieldMask)
//        .def_readonly("TransparencyFieldMask", &osg::SimpleMaterialBase::TransparencyFieldMask)
//        .def_readonly("LitFieldMask", &osg::SimpleMaterialBase::LitFieldMask)
//        .def_readonly("ColorMaterialFieldMask", &osg::SimpleMaterialBase::ColorMaterialFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::SimpleMaterialBase::MTInfluenceMask)
        .def("getClassType", &osg::SimpleMaterialBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::SimpleMaterialBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::SimpleMaterialBase::*)() )&osg::SimpleMaterialBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::SimpleMaterialBase::*)() const)&osg::SimpleMaterialBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::SimpleMaterialBase::getContainerSize)
        //.def("getAmbient", (osg::Color3f& (osg::SimpleMaterialBase::*)() )&osg::SimpleMaterialBase::getAmbient, return_value_policy< copy_const_reference >())
        .def("getAmbient", (const osg::Color3f& (osg::SimpleMaterialBase::*)() const)&osg::SimpleMaterialBase::getAmbient, return_value_policy< copy_const_reference >())
        //.def("getDiffuse", (osg::Color3f& (osg::SimpleMaterialBase::*)() )&osg::SimpleMaterialBase::getDiffuse, return_value_policy< copy_const_reference >())
        .def("getDiffuse", (const osg::Color3f& (osg::SimpleMaterialBase::*)() const)&osg::SimpleMaterialBase::getDiffuse, return_value_policy< copy_const_reference >())
        //.def("getSpecular", (osg::Color3f& (osg::SimpleMaterialBase::*)() )&osg::SimpleMaterialBase::getSpecular, return_value_policy< copy_const_reference >())
        .def("getSpecular", (const osg::Color3f& (osg::SimpleMaterialBase::*)() const)&osg::SimpleMaterialBase::getSpecular, return_value_policy< copy_const_reference >())
        //.def("getShininess", (osg::Real32& (osg::SimpleMaterialBase::*)() )&osg::SimpleMaterialBase::getShininess, return_value_policy< copy_const_reference >())
        .def("getShininess", (const osg::Real32& (osg::SimpleMaterialBase::*)() const)&osg::SimpleMaterialBase::getShininess, return_value_policy< copy_const_reference >())
        //.def("getEmission", (osg::Color3f& (osg::SimpleMaterialBase::*)() )&osg::SimpleMaterialBase::getEmission, return_value_policy< copy_const_reference >())
        .def("getEmission", (const osg::Color3f& (osg::SimpleMaterialBase::*)() const)&osg::SimpleMaterialBase::getEmission, return_value_policy< copy_const_reference >())
        //.def("getTransparency", (osg::Real32& (osg::SimpleMaterialBase::*)() )&osg::SimpleMaterialBase::getTransparency, return_value_policy< copy_const_reference >())
        .def("getTransparency", (const osg::Real32& (osg::SimpleMaterialBase::*)() const)&osg::SimpleMaterialBase::getTransparency, return_value_policy< copy_const_reference >())
        //.def("getLit", (bool& (osg::SimpleMaterialBase::*)() )&osg::SimpleMaterialBase::getLit, return_value_policy< copy_const_reference >())
        .def("getLit", (const bool& (osg::SimpleMaterialBase::*)() const)&osg::SimpleMaterialBase::getLit, return_value_policy< copy_const_reference >())
        //.def("getColorMaterial", (GLenum& (osg::SimpleMaterialBase::*)() )&osg::SimpleMaterialBase::getColorMaterial, return_value_policy< copy_const_reference >())
        .def("getColorMaterial", (const GLenum& (osg::SimpleMaterialBase::*)() const)&osg::SimpleMaterialBase::getColorMaterial, return_value_policy< copy_const_reference >())
        .def("setAmbient", &osg::SimpleMaterialBase::setAmbient)
        .def("setDiffuse", &osg::SimpleMaterialBase::setDiffuse)
        .def("setSpecular", &osg::SimpleMaterialBase::setSpecular)
        .def("setShininess", &osg::SimpleMaterialBase::setShininess)
        .def("setEmission", &osg::SimpleMaterialBase::setEmission)
        .def("setTransparency", &osg::SimpleMaterialBase::setTransparency)
        .def("setLit", &osg::SimpleMaterialBase::setLit)
        .def("setColorMaterial", &osg::SimpleMaterialBase::setColorMaterial)
        .def("getBinSize", &osg::SimpleMaterialBase::getBinSize)
        .def("copyToBin", &osg::SimpleMaterialBase::copyToBin)
        .def("copyFromBin", &osg::SimpleMaterialBase::copyFromBin)
        .def("create", &osg::SimpleMaterialBase::create)
        .def("createEmpty", &osg::SimpleMaterialBase::createEmpty)
        .def("shallowCopy", &osg::SimpleMaterialBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("LitFieldId") = (int)osg::SimpleMaterialBase::LitFieldId;
    scope().attr("EmissionFieldId") = (int)osg::SimpleMaterialBase::EmissionFieldId;
    scope().attr("AmbientFieldId") = (int)osg::SimpleMaterialBase::AmbientFieldId;
    scope().attr("NextFieldId") = (int)osg::SimpleMaterialBase::NextFieldId;
    scope().attr("ShininessFieldId") = (int)osg::SimpleMaterialBase::ShininessFieldId;
    scope().attr("DiffuseFieldId") = (int)osg::SimpleMaterialBase::DiffuseFieldId;
    scope().attr("ColorMaterialFieldId") = (int)osg::SimpleMaterialBase::ColorMaterialFieldId;
    scope().attr("SpecularFieldId") = (int)osg::SimpleMaterialBase::SpecularFieldId;
    scope().attr("TransparencyFieldId") = (int)osg::SimpleMaterialBase::TransparencyFieldId;

    delete osg_SimpleMaterialBase_scope;

    class_< osg::SimpleMaterial, bases< osg::SimpleMaterialBase > , boost::noncopyable, osg::SimpleMaterialRefPtr >("SimpleMaterial", no_init)
        .def("getClassname", &osg::SimpleMaterial::getClassname)
        .def("changed", &osg::SimpleMaterial::changed)
        .def("dump", &osg::SimpleMaterial::dump, osg_SimpleMaterial_dump_overloads_0_2())
        .def("makeState", &osg::SimpleMaterial::makeState)
        .def("rebuildState", &osg::SimpleMaterial::rebuildState)
        .def("isTransparent", &osg::SimpleMaterial::isTransparent)
        .staticmethod("getClassname")
    ;


    register_ptr_to_python<osg::SimpleMaterialPtr>();
    implicitly_convertible<osg::SimpleMaterialRefPtr, osg::SimpleMaterialPtr>();
    implicitly_convertible<osg::SimpleMaterialPtr, osg::MaterialPtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::SimpleMaterialPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::SimpleMaterialPtr>);
}

